package com.example.systemend.Mapper;

import com.example.systemend.pojo.Goods;
import com.example.systemend.pojo.Pie;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 权哥
 * @version 1.0
 * @date 2022/5/31 20:50
 */
@MapperScan
@Mapper     //告诉springboot这是一个Mapper类
@Repository   //将IntegralDao交由spring管理
public interface GoodsMapper {
    //所有库存
    List<Goods> select_inventory();
    //货物采购添加
    void purchase_insert(Goods goods);
    //库存查询是否存在
    Goods search_inventory(int goods_num);
    //查询数量
    Goods a_search_inventory(int goods_num);
    //库存修改
    void update_inventory(Goods goods);
    //库存添加
    void insert_inventory(Goods goods);
    //进货订单列表
    List<Goods> select_purchase();
    //出货订单列表
    List<Goods> select_shipment();
    //出货订单添加
    void shipment_insert(Goods goods);
    //今日出货分类比例
    List<Pie> getCategory();
    //库存查询
    List<Goods> getInventory(String category);
    //主页===>今日进货量
    int today_purchase_quantity(String day);
    //主页===>今日销售量
    int today_shipment_quantity(String day);
    //主页===>今日流水
    int today_sales_money(String day);
    //主页===>今日毛利润
    int today_profit(String day);
}
